]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Update to changes for MetaWindow size-changed / position-changed signals
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 31 Jan 2014 22:57:20 +0000 (17:57 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 15 Feb 2014 04:49:54 +0000 (23:49 -0500)
These have changed upstream to be on the MetaWindow, rather than
the MetaWindowActor. Follow suit.

js/ui/workspace.js
js/ui/workspaceThumbnail.js

index d048dd24725412253a0ce117adb4e7387a2d1bc0..1d319e8ad5f2987e331fb0f27be3849a0406caae 100644 (file)
@@ -131,7 +131,7 @@ const WindowClone = new Lang.Class({
         this._dragSlot = [0, 0, 0, 0];
         this._stackAbove = null;
 
-        this._windowClone._updateId = this.realWindow.connect('size-changed',
+        this._windowClone._updateId = this.metaWindow.connect('size-changed',
             Lang.bind(this, this._onRealWindowSizeChanged));
         this._windowClone._destroyId = this.realWindow.connect('destroy', Lang.bind(this, function() {
             // First destroy the clone and then destroy everything
@@ -199,7 +199,7 @@ const WindowClone = new Lang.Class({
 
     _doAddAttachedDialog: function(metaWin, realWin) {
         let clone = new Clutter.Clone({ source: realWin });
-        clone._updateId = realWin.connect('size-changed', Lang.bind(this, function() {
+        clone._updateId = metaWin.connect('size-changed', Lang.bind(this, function() {
             this._computeBoundingBox();
             this.emit('size-changed');
         }));
index 1b24e59f5c6d4327e1ead38774030a10d3c9b195..3e71e9c65233d936fbf20a99bcf14cc672920656 100644 (file)
@@ -68,7 +68,7 @@ const WindowClone = new Lang.Class({
         this.realWindow = realWindow;
         this.metaWindow = realWindow.meta_window;
 
-        this.clone._updateId = this.realWindow.connect('position-changed',
+        this.clone._updateId = this.metaWindow.connect('position-changed',
                                                        Lang.bind(this, this._onPositionChanged));
         this.clone._destroyId = this.realWindow.connect('destroy', Lang.bind(this, function() {
             // First destroy the clone and then destroy everything
@@ -151,7 +151,7 @@ const WindowClone = new Lang.Class({
         let clone = new Clutter.Clone({ source: realDialog });
         this._updateDialogPosition(realDialog, clone);
 
-        clone._updateId = realDialog.connect('position-changed',
+        clone._updateId = metaDialog.connect('position-changed',
                                              Lang.bind(this, this._updateDialogPosition, clone));
         clone._destroyId = realDialog.connect('destroy', Lang.bind(this, function() {
             clone.destroy();